import com.zc.utils.DealWithDouble;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
@Slf4j
public class DoubleCount {
    @Test
    public void test(){
        String aa = "2.32122";
        String bb = "0.3";
        double a = Double.valueOf(aa);
        double b = Double.valueOf(bb);


        while(true){
            log.debug(a+"::"+b);
            //double c = a*b;
            double c1 = DealWithDouble.mul(aa,bb,7,6);
           String d = "::"+c1;
            log.debug(d);
           if(d.length()>11){
              break;
           }
        }

    }
}
